package index.oop;

public class instanceStudent {
    public static void main(String[] args) {
        //创建了一个stu的学生对象 实例化
        Student stu=new Student();
        stu.setName("xiaoming");
        stu.getName();
        stu.age=20;
        stu.gender="famale";
        stu.id=1;
        stu.height=1.6;
        stu.weight=45;
        //toString ()
        System.out.println(stu.getName());
        System.out.println(stu.age);
        System.out.println(stu.id);
        System.out.println(stu.gender);
        System.out.println(stu.height);
        System.out.println(stu.weight);

        //调用这个对象的方法
        stu.study();
        stu.examination();
        stu.rest();
        stu.playGame();
        stu.sing();

    }
}
